package com.gcloud.dto;

import java.text.MessageFormat;

import android.net.Uri;

public class GCloudFile {

	private String key;
	private String name;
	private String description;
	private String mimeType;
	private boolean isDirectory;
	private long size;
	private String parent_key;
	private String uri;
	private String md5;
	private String fecha_actualizacion;
	private String account;

	public GCloudFile(String key, String name, String description, String mimeType, boolean isDirectory, long size,
			String parent_key, String uri, String md5, String fecha_actualizacion) {
		super();
		this.key = key;
		this.name = name;
		this.description = description;
		this.mimeType = mimeType;
		this.isDirectory = isDirectory;
		this.size = size;
		this.parent_key = parent_key;
		this.uri = uri;
		this.md5 = md5;
		this.fecha_actualizacion = fecha_actualizacion;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getParent_key() {
		return parent_key;
	}

	public void setParent_key(String parent_key) {
		this.parent_key = parent_key;
	}

	public String getMd5() {
		return md5;
	}

	public void setMd5(String md5) {
		this.md5 = md5;
	}

	public String getFecha_actualizacion() {
		return fecha_actualizacion;
	}

	public void setFecha_actualizacion(String fecha_actualizacion) {
		this.fecha_actualizacion = fecha_actualizacion;
	}

	public String getMimeType() {
		return mimeType;
	}

	public void setMimeType(String mimeType) {
		this.mimeType = mimeType;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}	

	public boolean isDirectory() {
		return isDirectory;
	}

	public void setDirectory(boolean isDirectory) {
		this.isDirectory = isDirectory;
	}

	public String toString() {
		return MessageFormat
				.format("File Name: {0}\n + Description: {1} \n + Key: {2} \n + Uri: {3} + \n Account",
						name, description, key, uri.toString());
	}

}
